@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
//@import "./btn.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "syRegular", "syNormal", "syLight", "syExLight", "syMedium",
    "syBold", "syHeavy", "Segoe UI", "Lucida Grande", Helvetica, Arial, FreeSans,
    Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB",
    "Hiragino Sans GB W3", "FontAwesome", sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  height: auto;
}

#app {
  height: 100%;
}
.app-wrapper {
  overflow: auto;
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.clearFix:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
.clearFix {
  *zoom: 1;
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  margin-bottom: 0;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

ul,
ol,
li {
  list-style: none;
}

#app {
  height: 100vh;
  max-height: 100vh;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.un-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

video {
  object-fit: cover;
}
.not-select {
  -moz-user-select: none; /*火狐*/
  -webkit-user-select: none; /*webkit浏览器*/
  -ms-user-select: none; /*IE10*/
  -khtml-user-select: none; /*早期浏览器*/
  user-select: none;
}

.no-touch {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.border-radius {
  display: inline-block;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.block {
  display: block;
  width: 100%;
}
.p12 {
  padding: 10px 20px;
}
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pointer {
  cursor: pointer;
}
.h40 {
  .el-form-item__content {
    line-height: 40px;
    input {
      height: 40px;
    }
  }
  .el-input__inner {
    height: 40px;
    line-height: 40px;
  }
  &.el-select {

  }

  &.el-button {
    height: 40px;
  }
}
.h46 {
  .el-form-item__content {
    line-height: 46px;
    input {
      height: 46px;
    }
  }
  .el-input__inner {
    height: 46px;
    line-height: 46px;
  }
  &.el-select {

  }
  &.el-button {
    height: 46px;
  }
}
.h50 {
  .el-form-item__content {
    line-height: 50px;
    input {
      height: 50px;
    }
  }
  &.el-button {
    height: 50px;
  }
}


.el-notification.center-center {
  top: 50% !important;
  left: 50% !important;
  transform: translate(calc(-50% + 110px), calc(-50% - 80px)) !important;
}

.el-notification.center-top {
  top: 10% !important;
  left: 50% !important;
  transform: translateX(calc(-50% + 110px)) !important;
}

.el-table-filter {
  transform: translateX(-30px);
}

.tox {
  //tox tox-silver-sink tox-tinymce-aux
  .insert-image-content {
    .tox-button.tox-button--icon.tox-button--naked.tox-browse-url {
      display: none;
    }
  }

  .tox-dialog-wrap {
    .tox-dialog {
      .upload-upload-info {
        display: inline-block;
        font-size: 12px;
        line-height: 30px;
        height: 30px;
        text-indent: 76px;
      }
      .tox-dropzone {
        p {
          text-align: center;
        }
      }
    }
  }
}

.el-form-item__error,
.el-form-item.is-error .el-input__validateIcon{
  color: #9F1010;
}
.el-form-item.is-error .el-input__validateIcon:before {
  content : '\e7a3';
  font-size : 18px;
}
.custom-info .el-form-item.is-success .el-input__validateIcon:before {
  display: none;
}
.el-form-item.is-error .el-input__inner,
.el-form-item.is-error .el-input__inner:focus,
.el-form-item.is-error .el-textarea__inner,
.el-form-item.is-error .el-textarea__inner:focus {
  border-color: #9F1010;
}

/*notify前缀图标*/
.el-notification {
  .el-notification__icon{
    &.el-icon-error {
      &:before {
        color: #9F1010;
      }
    }
    &.el-icon-success {
      &:before {
        color: #7AC756;
      }
    }
  }
  .el-notification__title, .el-notification__content p {
    color: #101010;
    font-family: syRegular;
  }
}
/*前缀图标*/
.custom-prefix-form {
  .el-form-item__content {
    .el-input--prefix {
      .el-input__prefix {
        width: 38px;
        height: 38px;
        left: 1px;
        top: 1px;
        background: #D7D7D7;
        .el-input__icon {
          &:before {
            color: #fff;
            font-size: 20px;
          }
        }
      }
      .el-input__inner {
        padding-left: 52px;
      }
    }
  }
}

.el-table {
  .el-table__body {
    // 使表格兼容safari，不错位
    width: 100%;
    table-layout: fixed !important;
  }
}
